package com.atguigu.spring.aop.proxy;

import org.junit.jupiter.api.Test;

class TestCglibProxy {

	@Test
	void test() {
		
		ArithmeticCalculator target = new ArithmeticCalculatorImpl(); 
		CglibProxyFactory cf = new CglibProxyFactory(target);
		
		ArithmeticCalculator proxy = (ArithmeticCalculator) cf.getProxyObject();
		
		//调用代理对象的方法
		proxy.mul(1, 3);
		System.out.println("----------------------");
		
		
		
	}

}
